<%@page import="com.nxu.biz.impl.BooksBizImpl"%>
<%@page import="com.nxu.biz.BooksBiz"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
    String isbn = request.getParameter("isbn");
    String statusParam = request.getParameter("status");
    boolean status = "1".equals(statusParam);
    
    BooksBiz biz = new BooksBizImpl();
    boolean result = biz.updateBookStatus(isbn, status);
    
    if(result) {
        out.print("success");
    } else {
        out.print("更新状态失败");
    }
%>